/*
 * @Author: your name
 * @Date: 2021-12-09 19:01:00
 * @LastEditTime: 2021-12-10 14:13:54
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \Vue\12.9zy\src\index.js
 */
import './css/index.scss'
import './css/style.css'
import './js/swiper.js'

import 'iconfont/iconfont.css'
import axios from 'axios'
axios.get('/list').then(res=>{
    console.log(res.data);
    render(res.data)
})
function render(data){
    ul.innerHTML=data.map(item=>{
        return `<li>
        <img src="${item.img}"/>
        <h3>${item.name}<h3>
        </li>`
    }).join("");
}


